package com.fjec.user.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 004.菜单表
 * </p>
 *
 * @author admin
 * @since 2020-08-31
 */
@TableName("sys_menu")
public class SysMenu implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键Id
     */
    @TableId("Id")
    private Long id;

    /**
     * 应用类型
     */
    @TableField("AppType")
    private Long appType;

    /**
     * 父菜单ID
     */
    @TableField("ParentId")
    private Long parentId;

    /**
     * 菜单名称
     */
    @TableField("MenuName")
    private String menuName;

    /**
     * 是否叶子
     */
    @TableField("Leaf")
    private Integer leaf;

    /**
     * 是否展开
     */
    @TableField("Expanded")
    private Integer expanded;

    /**
     * TIPS
     */
    @TableField("Tips")
    private String tips;

    /**
     * 创建时间
     */
    @TableField("CreateTime")
    private LocalDateTime createTime;

    /**
     * 排序
     */
    @TableField("Sort")
    private Integer sort;

    /**
     * 更新时间
     */
    @TableField("UpdateTime")
    private LocalDateTime updateTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public Long getAppType() {
        return appType;
    }

    public void setAppType(Long appType) {
        this.appType = appType;
    }
    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }
    public String getMenuName() {
        return menuName;
    }

    public void setMenuName(String menuName) {
        this.menuName = menuName;
    }
    public Integer getLeaf() {
        return leaf;
    }

    public void setLeaf(Integer leaf) {
        this.leaf = leaf;
    }
    public Integer getExpanded() {
        return expanded;
    }

    public void setExpanded(Integer expanded) {
        this.expanded = expanded;
    }
    public String getTips() {
        return tips;
    }

    public void setTips(String tips) {
        this.tips = tips;
    }
    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }
    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }
    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "SysMenu{" +
            "id=" + id +
            ", appType=" + appType +
            ", parentId=" + parentId +
            ", menuName=" + menuName +
            ", leaf=" + leaf +
            ", expanded=" + expanded +
            ", tips=" + tips +
            ", createTime=" + createTime +
            ", sort=" + sort +
            ", updateTime=" + updateTime +
        "}";
    }
}
